package com.hxb.example.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "xxl.job")
public class XxlJobProperties {

    private Admin admin;
    private String accessToken;

    @Data
    public static class Admin {
        private TriggerPool triggerPool;
    }

    @Data
    public static class TriggerPool {
        private int fastMax;
        private int slowMax;
    }
}
